#include <wolfssl/ssl.h>
#ifdef MY_OS_WINDOWS
  #include <winsock2.h>
#endif

extern int user_main(int argc, char *argv[]);

int main(int argc, char *argv[]) {
 #ifdef MY_OS_WINDOWS
  {
    WORD wVersionRequested = MAKEWORD( 1, 1 );
    WSADATA wsaData;
    WSAStartup(wVersionRequested, &wsaData);
  }
 #endif

  wolfSSL_Init();

  int ret = user_main(argc, argv);

  wolfSSL_Cleanup();

 #ifdef MY_OS_WINDOWS
  WSACleanup();
 #endif
  return ret;
}